package com.channelsharing.hongqu.portal.api.service.impl;

import com.channelsharing.common.service.CrudServiceImpl;
import com.channelsharing.hongqu.portal.api.dao.CouponDao;
import com.channelsharing.hongqu.portal.api.entity.Coupon;
import com.channelsharing.hongqu.portal.api.service.CouponService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CouponServiceImpl extends CrudServiceImpl<CouponDao,Coupon> implements CouponService {

	@Override
	public Coupon findOne(Long id) {
		return null;
	}

	@Override
	public List<Coupon> findUsableList(Long goodsId) {
		return super.dao.findUsableList(goodsId);
	}

	@Override
	public List<Coupon> findUsableListByUser(Long goodsId, Long userId) {
		return super.dao.findUsableListByUser(goodsId,userId);
	}
}
